If you explained what the actual error you were receiving was, someone might be able to help you. As said, "the python program does not work," is not an accurate description of the problem. We need information like what error message you receive, what version of python are you using, and if possible the code that is actually causing the problem, etc. If you don't provide these details all you will receive if anything will be blind guesses.
Have you confirmed that python is working on the machine at all? Can you open an interactive interpreter session?