enable some python3 compatibility options