Fixed pikos compatibility with Python2.6