import inspect


def collect_technologies(module_name):
    """
    Collects the technologies from the PyGenesys input file.

    Parameters
    ----------
    module_name : python module
        The PyGenesys input file once imported. Should be "infile."
    """
    technologies = []

    for member, attrib in inspect.getmembers(module_name):
        try:
            string_attr = str(attrib)
        except BaseException:
            string_attr = ''

        if 'Technology' in string_attr:
            print(f"{member} is Technology")
            technologies.append(getattr(module_name, member))

    return technologies