Uploads to PyPI

def upload():
    """Uploads to PyPI"""
    env=os.environ.copy()
    print(env)
    env['PYTHONPATH']= "./pynt"
    print(env)
    #    subprocess.call(['ssh-add', '~/.ssh/id_rsa'])
    pipe=subprocess.Popen(['python', 'setup.py', 'sdist','upload'], env=env)
    pipe.wait()