Running Python application on IIS server

So I've built an application with the Tessitura API using python and flask to render my HTML templates. Our organization already has a virtual server running IIS for some other internal websites. I'm attempting to set it all up on there and have made some headway. I've mapped a Python script handler for my application and it appears to be working, but when it attempts to execute my python script, it's not recognizing the tessitura api module which is stored in the venv/lib directory of the project. The application runs fine when I run it through PyCharm using the flask test server and the Tessitura module imports without issue; but on the IIS server I get a 502.2 error. The IP address of the virtual server is whitelisted for our REST API so that shouldn't be the issue.