Add prototype for method overriding from Python