import yaml


def get_config(config_file):
    """ Read CircleCI config YAMLs as dictionaries """
    with open(config_file) as fstream:
        try:
            return yaml.safe_load(fstream)
        except yaml.YAMLError as err:
            print(err)