The easiest workaround is to move the code in myapp.py to another module and import that module in myapp.py.
Note that modules other than the main script are only byte-compiled (as .pyc files), and those files can still easily be turned into source code.
Byte-compiling the script file is on my todo list, but is more complicated that just replacing a .py file by a .pyc file as you noticted :-)