Invalid Polygon Credentials Solved

Solved for me anyway.
Solution clean up crappy code and refer to keys as variables.

Nice! Care to elaborate on exactly the changes you made?

Got same issue with backtrader library - https://github.com/alpacahq/alpaca-backtrader-api/issues/37