update the convert script. divsmush doesn't work yet
fix an if statement, some pep8 cleanups