python3 compatibility

python3 compatibility