change your null tests to be in accordance with PEP8 (see: http://www.python.org/dev/peps/pep-0008/#programming-recommendations)