Find root of a typical Python structure