def merge_two_dicts(x, y):
z = x.copy()  <EOL>z.update(y)  <EOL>return z<EOL>
Merges 2 dictionary.
Overrides values from x with values from y, if key is the same.

Needed for Python < 3.5

See: https://stackoverflow.com/a/26853961

:param x:
:param y:
:return: