added devget(), updated code based on pep8 suggestions