Create Graph Using Python Dictionaries Multiple Keys