Rework so bulk of code runs as bitcode from .pyc