Interaction between web interface and python script