in reply to replace object methods at runtime

A very similar question was discussed not too long ago in Reopening builtin classes, redefining builtin functions? The answers there might be helpful also.