Rewrote compilation script as a Python executable.