Update backend.py

Need a coffee..