added py2 compat