Cleaned up LIF.rates function to use gains
Fixed docs/conf.py to be PEP8