Python Create Json Array Javascript Methods In Selenium