Suggested changes for pull request

I refactored the assconv parsing - noticing that the ascconv stuff is Python
syntax almost.

Fixes for Python 3 of various sorts.