python3 support
Compatibility changes