Fixed #86

This fixes the issue for me
lines 176-188 have to be rewritten. The code should follow one pattern whatever it is. You can do

```
if ",M:" in page:
...
elif ",g:" in page:
...
else:
# process ",d:"
```

also, the appropriate string should be used on line 184 - ```s += len(",g:")```