Switching to python because R's object logic confuses me too much