Activity notification and task creation for file upload added

changed file.py, where a common function create_task_for_activity is called with activity_dict as one of the argument.
create_task_for_activity and a funtion to create a single task (create_task) are defined in methods.py