Fix for Python 2.66

This fixes the system for me in Python 2.66