analyse_access_log for python