This is a few Rigging Modules I wrote in 2016,
I was still writing a lot of Mel at the time and it shows

rigUtil.py

rigLib.py

rigPieces.py

rigUser.py