Update ma_funcs.py

Fixed bug for actions with no arguments