make things more python 2.6 friendly - readline doesn't work correctly though