Fix to crashes when reloading. One is when python is running the source file from a pyc file (I need to do this in a better way).

The other is an issue where sometimes certain read only attributes in a class are trying to be replaced.