Hill Climbing Search Code In Python