Returns compiled check50 checks from simple YAML checks in path.

def compile(checks):
    """Returns compiled check50 checks from simple YAML checks in path."""

    out = ["import check50"]

    for name, check in checks.items():
        out.append(_compile_check(name, check))

    return "\n\n".join(out)