Fix type bug in management.py.
Run IPython notebook instead of main.py.