use ipython not python, and update encoding params