def upload(csvfile):
    with open(csvfile) as f:
        for info in csv.DictReader(f):
            info.update({'client-secrets': 'client_secrets.json',
                'credentials-file': 'client_secrets.json'})
commandline = ['youtube-upload'] + ['--{0}="{1}"'.format(k, v) for k, v in
    list(info.items())]
subprocess.call(commandline)

def main():
    pass
batch upload videos to youtube via command line python