Im not much of a coder, but from the large gibberish you have here it seems you behavior file is corrupted and game just doesnt take it. I'd suggest you downloading the game again ( not deleting previous game) and then in your current game locating file called behavior.py and replacing it with the freshly downloaded one. Im not sure it would help, but as I said im not and programmer, just making suggestions :)