def _parse_time_str(time_str):
 time_obj = time.strptime(time_str, '%M:%S')
 return ((time_obj.tm_min * 60) + time_obj.tm_sec)

def _parse_time_str ( time_str ) : time_obj = time . strptime ( time_str , '%M:%S' ) return ( ( time_obj . tm_min * 60 ) + time_obj . tm_sec )
parse a string of the form 1:23 into seconds .