improved code style and commentary
string keys need quotes in python