removed all temporary file handling from wrappers.py; improved 3to2 compatibility