basic object tracking in python