import json


def parse_urls(filename):
    """
        Return map IDs converted from triggers.js file and convert them to URLs
        for fetching JSON data.
    """
    with open(filename, 'r') as triggers_file:
        template = 'https://my.mindnode.com/{}.json'
        return [(template.format(el['map'][0: 40]), el) for el in json.load(triggers_file)]

    return None