Issue #37: pyptlib integration, mode updates to deployment scripts