Added gain patch from here:
and setup.py to make this pip install-able
adding patch for new gain api: http://pastebin.com/KTK3iZtQ
adding setup.py from simple setup
Will trim the white-spaces, thanks.
About the spaces around arithmetic operators: PEP8 doesn't require this for operators with different priorities (PEP8 checkers are a bit overzealous).
Added setup.py and fixed formatting (see my latest commit for improved gain support).