Adding support for Handle to Python component of the Pattern Matcher