Python formatting support

This version should be a reasonable start. The main thing that is missing is support for multi-line strings. I haven't figured out how to capture those in a regexp.