How to convert a string to regular object?

Is there a way I can do this?

'()' ------> ()

Not enough constraints. This satisfies your example.

def str_to_obj(whatever):
    return ()