simplifying app; add python app funcs