Not sure this is it, but in the error code it threw, it shows a single quote starting your file location and no single quote ending it.
Also, the file is just a fc in the gdb, not within a feature dataset or anything, if it is, you need to add the feature dataset to your file path. You shouldn't need to hard code the file path, since you set your environment, it will automatically check that location for the file, so you could do fc = "Mains", though for the sake of this particular script I'd leave it alone til it is working.
Make sure you don't have the file Mains open in ArcCatalog or ArcGIS, it will have a lock on it making you unable to access it with the cursor(I think).
Edit: Haha, yes always lots of error codes. I always get tons of them on scripts I write, but it feels to much better by the time works right. For future reference, I'd write small parts of code at a time, debugging each section as I go. Once you get one section working, move to the next, it makes it easier to handle errors, and you get small victories as you go, instead of a pile of possible errors at the end.