Python Replace Instance Method In Ruby