Python Change Array To String Javascript Methods In Selenium