port to python 2
fix _tracemalloc to parse filenames (str, not unicode)
various fixes for python 2