Deploying a Python script on Google Cloud

Hi I'm having an issue with a Google Cloud function (on Firebase) I am trying to deploy and was wondering if you could help fix it. Basically I am using SIFT from OpenCV for a simple algorithm. It's my first time deploying a cloud function so idk how to figure out the [login to view URL] properly. I'm sure the issue is there because it needs the opencv-contrib-python to get SIFT. But it is only available from version 3.3 and lower. So essentially I would need to configure it to run in Python 2.7 I think? I'm not really sure how to set this all up, but I already have the Python script working and running, just need help with the deployment. Would you be interested in helping me fix the setup for this?