Starting to recreate MVI in python