Seek And Tell Function In Python