use normal unix tmp dir (probably should be elsewhere)
python2.6 compatibility
Merge pull request #37 from wardi/master

small fixes