Some fixed for pybidi script, still wrong output for py3