Create rsmpp_funcs.py

Functions for main rsm processing script.