def isempty(line):
    """ Checks if a line is empty  (contains only witespaces or tabs)"""
    if len(line.replace("\n","").replace(" ","").replace("\t","")) == 0:
        return True
    else:
        return False