Merge python_scripts/Ptychography.py from ERA_both