dotted key and getattr/setattr/delattr changes, and more tests
only test has_key on python2