Fixed a TypeError in quote.py