Tuning python3 support