Shinyapp with python code failing to load on shinyapps.io

Hello, I had my shinyapp up and running on shinyapps.io until a few days ago. The app uses a few lines of python code. But now the app is failing to load with the following error message-

SyntaxError: invalid syntax Error in value[[3L]](cond) : Error installing package(s): 'pip', 'wheel', 'setuptools', 'numpy' Calls: local ... tryCatch -> tryCatchList -> tryCatchOne -> <Anonymous> Execution halted

I don't understand why the system is failing to install the libraries. Because everything was fine even a few days ago and I haven't pushed any updates recently.

I used the following code for setting up the virtual environment-

reticulate::virtualenv_create("python35_env", python = "python3")
reticulate::virtualenv_install("python35_env", packages = c("bdshare"))
reticulate::use_virtualenv("python35_env", required = TRUE)

My .Rprofile file looks like the following-

Sys.setenv(RETICULATE_PYTHON = "~/.virtualenvs/python35_env/bin/python3")

I tried to uninstall and then install an older version of pip without any benefit (as suggested on this thread https://community.rstudio.com/t/python-virtual-environment-in-r-shinyapp-io-stopped-working-suddenly/62561/6

Any kind of help/suggestion would be appreciated.