''' Takes a dictionary of options along with a list of required options and dictionary of default options, and sets all keyval-pairs of options that is not already defined to the default values'''
foroptioninrequired_options:
ifoptionnotinoptions.keys():
options[option]=default_options[option]
returnoptions
defsave_options(options,path):
''' Saves any options dictionary to a JSON-file in the specified path'''