Fix torch-classes completer to recurse into superclass.

This fixes the fix to #9 by recursing up the inheritance chain.