Python Path Get String Length Python Array Slicing