Update actions.py

Reduced lines used from 5 to 1 for imports