Python program that (sort of) simulates a tree growing