I could"ve been faster in Python