def defineParameter(dictionary, key, fallback = None):
  """
  Define a variable if it is contained in the dictionary, if not use a fallback
  Fairly self explanitory, this gets used a *lot*
  """
  if key in dictionary:
    parameter = dictionary[key]
  else:
    parameter = fallback
  return parameter