Create Nested Dictionary In Python Code