Added Python Bindings for RegisterPlanCallback

I had to change the check on res (see line 200) to avoid a segfault. @mkoval suggested this may be due to an issue with the wrapper on the enum.