python computer vision test code