Fixing python3.3 compatibility