runs with python -u & cosmetic change