dict mapping for Python