Added character recognition and tread in python example