code: def rotation(self):
          
          rs = dict(PORTRAIT=0, LANDSCAPE=1, UIA_DEVICE_ORIENTATION_LANDSCAPERIGHT=3)
          return rs.get(self.session.orientation, 0)
docs: Rotation of device
          Returns:
              int (0-3)