Added get method equivalent to dict.get

* added method
* pep8 corrections