Handle Python applications without .py extension.
Account for removal of .py extension.