Preliminary python3 support