[IMP-dev] Moving runtime checks to python