fixed minor python bugs.
Commit for merge
Merged master into groupSuggestion