Refactored action.py to follow new coding convention.