Added update_activity to session model and blank lines between functions
PEP8 blank line rules