observe module in python