Constify some constants and PEP-8 some variables