Handle the APPEND_SLASH setting

This is done in mezzanine entirely
pep8 fix