Dosctring format checker bug fix

Fixed bug where methods inhereted from a parent class were being parsed by the format test while they should not be.
This will fix the issue encountered on this pull request https://github.com/lisa-lab/pylearn2/pull/747