You can remove pragma_path from the script and place
cube.mdl inside the same directory as your script.
With level the engine expect a WMB file not hmp or mdl. This is not always required though Lite-C doesn't have WED so it make little sense. That is why I set it to NULL. (You can load WMB files with Lite-C). This should work without message after you comment out pragma_path.