Node Red Python Function Definition