def check_parameter_similarity(files_dict):
try:<EOL><INDENT>parameter_names = iter(files_dict.values()).next().keys()  <EOL><DEDENT>except AttributeError:  <EOL><INDENT>if any(i is not None for i in files_dict.values()):  <EOL><INDENT>return False<EOL><DEDENT>else:<EOL><INDENT>return True<EOL><DEDENT><DEDENT>if any(parameter_names != list(i.keys()) for i in files_dict.values()):<EOL><INDENT>return False<EOL><DEDENT>return True<EOL>
Checks if the parameter names of all files are similar. Takes the dictionary from get_parameter_from_files output as input.