Authentication

Fixes compatibility between python2 and 3 especially on standardizing the pathnames to unicode