Fix pep8 errors.
Fix optionaltags filter to not error when filtering nothing.