Appium & Python: How to run the Firefox browser on an Android device?

Hi there,
This python script is responsible for launching the Chrome browser on an android device and It works fine with no problem, Kindly view the attached image:

**What I want/need:
Recently, Android support has been added to geckodriver:

I’ve tried to reconfigure/customize the above code, so It can launch the Firefox browser Instead of the Chrome browser. Unfortunately, I was not able to do it.

Can anyone please help me rewriting this script, so It can launch the Firefox browser?