Fix username generation.
Fix python2 bug.
Fix py2k bug.