Update process.py

generalized function to accept any log file and any sort day