Use amodem as a Python package instead of subprocess.