[python] Make a dictionary in Python from input values