ppqq_wrangler function

Wrangles arguments for use in ppml and qqml functions.