I want to use domain.yml text in action.py

You could also handle this with your own NLG server as described here.