Run All Intermediate Models in a Python Model

I have a python model in the mart folder and then I would like to run all sql model includes in intermediate folder. I tried to list the directory files and then run dbt.ref(); but it gave me the following error.

Error when trying to literal_eval an arg to dbt.ref(), dbt.source(), dbt.config() or dbt.config.get() malformed node or string: <ast.Name at something>

How can I run all models include in the intermediate folder dynamically? Note that intermediate models have specific filename such as int_<name>.