Python 3.2 compatibilty