Python3 compat

A couple of fixes to make ``nodeenv`` installable with python3.