# import collections
# import file
# class fileutils():
#     def isfilelike_r(self,f):
#         if isinstance(getattr(f,'read'),collections.Callable):
#             pass
#
#     def isfileobj(self,f):