fixing regex in python_syntax for def and class
Merge pull request #1059 from diegosarmentero/master

fixing regex in python_syntax for def and class