switching car program to .py