+python3 compatibility

Compatibility with +python3