updates to ansi.py