Your code, as written, doesn't compile. I suspect that your real PyDerivedClass doesn't really derive from PyBaseClass as if it did that last line would have to be
(self.thisptr).SetObject(inputObject.thisptr)
This would also explain the type error you're getting, which is a bug I can't reproduce.