I mean try a minimal Python code to run with your current setup. If it still doesn't work then something is wrong with your setup and then it would be easier to see what exactly is wrong having a minimal python app. OTOH if it does work that's a different story, in that case I'd recommend to distill Python code to get it from not working to working (at which moment you'll realise what exactly caused the trouble).