missed py3k adaptation - thanks joe