Convertir l'entrée de chaîne en tuple imbriqué en python

import ast
inp = '((1, 2), (3, 4))'
inp = ast.literal_eval(inp)
print(inp)
motinxy