The comment was mostly about issue #19 . I don't believe try except block is needed here because if an 'external_ip' key doesn't exist in the dictionary it will be created on that assignment.