Brute Force Attack Python Code