code: def pypi_register(server='pypitest'):
      
      base_command = 'python setup.py register'
  
      if server == 'pypitest':
          command = base_command + ' -r https://testpypi.python.org/pypi'
      else:
          command = base_command
  
      _execute_setup_command(command)
docs: Register and prep user for PyPi upload.
  
      .. note:: May need to weak ~/.pypirc file per issue:
          http://stackoverflow.com/questions/1569315