Domain specific language for pattern matching on python parsetrees