Remove debug print statement
Add compatibility with Python 2.6