fix code style
fix code style + update setting for ipython