refactored some stuff, added a pynotebook about multiple dispatch too