expanded ring and memory secrets and more pep8