Find Closest Element In Array Python Definition