integrating espresso.py with other scripts