Need help with vision sensor code

We are trying to use the vision sensor in vex code v5 text python. I don’t know the code to use the sensor. I want to start out by having it see a cube, and drive towards the cube. All the tutorials are in blocks. Any help is greatly appreciated!!