add hacky python3 support