fix for cpython2