fix everything when running under python 3