Update firebase.py

Fix issue with wrongly assigned variables