python interface: automatically derive method type for *_free