Php Get Max Index Of Array In Python