convert to an integer first element of the value under the 'content-length' key of the meta_data dictionary, substitute it for content_length.
content_length = int ( meta_data . get ( 'content-length' ) [ 0 ] )