Renamed compile function to avoid conflict with internal python function.