fix cosmetic mistakes in helpers.py