Python Create Json Object From Variables And Patterns