hs io and python slicing gist