Update common.py

Use modern dict syntax (Py2.7+)