add support to disable restricted python from config
some minor fixes
re added indexing update, wrongly deleted