py3k fixed minor bug