def login_to_sourceforge_cvs(project, username='anonymous', password=''):
    host = '%s.cvs.sourceforge.net' % project
path = '/cvsroot/%s' % project
cmd = ['cvs', '-d:pserver:%s:%s@%s:%s' % (username, password, host, path),
    'login']
Spawn subprocess that expects console input without blocking?