some fixes for using observe from Jython