Please try the "if __name__ == '__main__':" construction in your program, it may solve all your pypreprocessor problems.