def read(fname):
    return open(os.path.join(os.path.dirname(__file__), fname)).read()
def get_except(self, func, *args):
        try:
            func(*args)
        except Exception as detail:
            return detail.__class__, str(detail)