Set up environment and Ipython profile