Message passing between gnuradio block and python class

Hi.
I am trying to make message source block in python. This block will send
value of some variable by message to python class.
I want to send message from this block to python class. Is it possible
to
send message in this manner? If yes, then how?

Thanks
Mitul Vekariya