Soon to be home for the Python library (currently in wearscript/tools/extend)