def upload(s3_conn, filepath, s3_path):
bucket_name, prefix = split_s3_path(s3_path)<EOL>bucket = s3_conn.get_bucket(bucket_name)<EOL>filename = os.path.basename(filepath)<EOL>key = boto.s3.key.Key(<EOL>bucket=bucket,<EOL>name='<STR_LIT>'.format(prefix, filename)<EOL>)<EOL>logging.info('<STR_LIT>', filepath, key)<EOL>key.set_contents_from_filename(filepath)<EOL>
Uploads the given file to s3

    Args:
        s3_conn: (boto.s3.connection) an s3 connection
        filepath (str) the local filename
        s3_path (str) the destination path on s3