Python Selenium Element Attributes Javascript Array Slice