update sift.py with bruteforce code