Please note that the version file uses Python code, so you can give it the .py extension rather than .rc.
This will allow you to see it formatted nicely in your IDE, to check for errors (ignore "Unresolved References", of course), and to do anything else Python allows you to do.