Create activity.py

For generating friend activity