As far as i know, AIML is just a markup language. Its an XML file, to simply put its a database to stores the input to output mapping data for the AI. So, AIML can’t do anything except storing data.
With python you can make UI part that actually takes in the user input in some form, converts it into a form present in AIML, then reads the AIML file, searches for the appropriate response output, and conveys it to the user through text, or picture or voice or maybe controlling some real world device.
you can check out the pyAIML, python based interpreter for AIML at https://github.com/creatorrr/pyAIML