Practiced algorithms in Python