fix pep8, add ipv6 local account and cleanup settings