Here, the choice of language is totally irrelevant, all other circumstances being equal.
If you are attempting to do A and there is a library for it in language B and fits well with your Web-based framework, then you must use it.
Without understanding more about what particular areas of AI you are interested in, the question is far too complex to be answered.
But if you using Prolog, then check out for PySWIF. It combines the declarative logic language Prolog with the procedural general-purpose language Python that allows you to write web apps procedurally in Python as you are used to.