I'm trying to figure out how you ended up with a stray comma at the end of a line. A simple typo, bumping the key without noticing?
Loose-type languages often struggle with auto-complete and related. I don't know enough about current state of python development to say with certainty, however.