Prevent loading of python code that is not a cod module