add inline admin compatibility, minor pep8 cleanup