Fixes python and compiler errors.