Reboot of the core pythoncad functionality as a resusable library