brute force using python, good