Integrated encoders without Cortex

Hey I’m working with vex integrated motor encoders in conjunction with my raspberry pi in Python, not an actual vex cortex. Can someone explain to me how to initialize the encoders without RobotC and what it means? After it is initialized does the encoder act just like the optical shaft encoders? Thanks