The obvious question, do you have the shebang on the first line so the OS knows it's to be run as a Python program? Also I would change tryJson() to if __name__ == "__main__': tryJson() This probably won't make any difference but you will have the bases covered.
-- http://mail.python.org/mailman/listinfo/python-list