Python Sort Object Array Javascript Methods In Selenium