python_service.i: naming change getAITApplication -> getAITApplications

optimization size() -> !empty()