modified the Handler clas to work wiht the pyssembly submodule