Editor: Here is a convenient way to create, parse, alter, and write .pc files. Just pass PkgConfig() a file-like object, or None to start fresh. Print the object to create a new .pc file.
Some people might want even more functionality, but I chose not to hinder the flexibility of the class.