def main(): print 'called main()' def test(): print 'called test()' if __name__ == '__main__': # test() main() # comment this and uncomment test() during development