Python Numpy Find Closest Value In Array Json Php Headers Sent