def sequence_macros(macros):
    """
    Generate a single macro from a list of macros
    @param macros: List of macros
    @return: macro
    """

    def foo():
        for m in macros:
            m()

    return foo