Find Closest Element In Array Python Initialize Parent