[python] Appending values to dictionary in Python