supporting PY2 and PY3 is annoying :-(