little typo fix and PEP 8 compatible syntax