Fix MethodAndVariableSnakeCase concerning def and self assignments.

A couple of bugs in regexp matching.
Merge pull request #444 from jonas054/fix_methods_snake_case

Fix MethodAndVariableSnakeCase concerning def and self assignments.