def read ( self , count = 0 ) : return self . f . read ( count ) if count > 0 else self . f . read ( )
python does read or readline return an empty string
Read
def read(self, count=0):
        """ Read """
        return self.f.read(count) if count > 0 else self.f.read()