python 3, endless prefix bug fix