Modifies 'str' class to six.text_type in order to support python2
Use six.moves.urllib package to support python2