I would like to write some scripts in python that do some automated changes to source code. If the script determines it needs to change the file I would like to first check it out of perforce. I don't care about checking in because I will always want to build and test first.
You may want to check out the P4Python module. It's available on the perforce site and it makes things very simple.
How do I check out a file from perforce in python?