twin stars IPython notebook