Gr_modtool and python

i have a any.py code, so is it possible to add this code with gr_modtool
to my gnuradio companion as a block? if it is could you write it’s
steps.