npm support and "unicode" instead of "str" for python 2