Fix tell() bug Python 3