Import current class's package when patching.

Signed-off-by: Ross Allan <rallanpcl@gmail.com>