Python Structure To Byte Array Javascript Methods In Selenium