PEP8
Small changes to the format selection.

Assures it is always uppercase and valid.
obspy.arclink now uses StringIO.

Instead of a temporary file.