<SYSTEM_TASK:>
Solve the following problem using Python, implementing the functions described below, one line at a time
<END_TASK>
<USER_TASK:>
Description:
 def pypi_register(server='pypitest'):
 """Register and prep user for PyPi upload. .. note:: May need to weak ~/.pypirc file per issue: http://stackoverflow.com/questions/1569315 """

    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)