1st python port, super slow...