hacky fix for python3

probably a better way to do this, but who cares this works