make everything play nice with iPython