Reworked python scripting engine and bolsrv