Make microsphere.py and samcruise.py work standalone with Python 3