os.lseek()

os.lseek(fd, pos, how) → newpos

Set the current position of a file descriptor. Return the new cursor position in bytes, starting from the beginning.