https://fedorahosted.org/authconfig/browser/shvfile.py is an implementation of reading shell style variables
from a file.

It is overkill for our needs, but it might be useful to glance over it looking for potential gotchas