call the method datetime.datetime.strptime with 2 arguments: return value of the function force_str called with an argument value,
v = datetime . datetime . strptime ( force_str ( value ) , input_format )