Add colorize function and tests
Add in_ipython function and tests