Use

~~~
my_dict = {"key1": value2, "key2": value2}
~~~

instead of 

~~~
my_dict = {}
my_dict["key1"] = value1
my_dict["key2"] = value2
~~~