Update pysymbol.py

```
RuntimeError: dictionary changed size during iteration
```
http://stackoverflow.com/a/11941982