Fix __init__.py and petrarch.py to allow CLI