added process.py, it will contain the functions that are currently in main, transfered one for now