This is downright weird: # bug.py items = globals().items() TypeError: Uninitialized object is not callable The bug happens only if you run from the file. Console is okay. I found this while trying to run test_sax.py in the Python test suite. -- Seo Sanghyeon