def exp_compile(obj):
    """Convert an ast object into a code object

    Args:
        obj (ast.AST): AST object to compile

    Returns:
        code object

    """
    return compile(obj, "<string>", mode="eval")