Facebook.py: Simplified code