implementing inherited roles for KVS and fixing pep8