def get_md5sum(src_file):
 with open(src_file, 'rb') as src_data:
  src_content = src_data.read()
  src_md5 = hashlib.md5(src_content).hexdigest()
 return src_md5

def get_md5sum ( src_file ) : with open ( src_file , 'rb' ) as src_data : src_content = src_data . read ( ) src_md5 = hashlib . md5 ( src_content ) . hexdigest ( ) return src_md5
returns md5sum of file .