created machine.py for machine class and translated parameters.sh to parameters.py for direct access with Python