py: Make stream seek correctly check for ioctl fn; add seek for textio.