I have been working on an app for the Leap Motion, in Python, and when I tested it, it worked fine when I clicked Launch App. No app windows open, but the Python code all works fine.

However, when I package the app and launch that, it does show an app window and the Python isn't working at all... Am I missing something?

Here's the code of my index.html:

```
<html>
    <head>
        <script>
            Titanium.include("PyLeapMouse.py");
            Titanium.include("Geometry.py");
            Titanium.include("Leap.py");
            Titanium.include("LeapFunctions.py");
            Titanium.include("Mouse.py");
        </script>
        <script type="text/python">
            import Leap
            import Mouse
            import LeapFunctions
            import time
            import sys

            def main():
                cursor = Mouse.cursor()
                listener = LeapFunctions.Listener(cursor)

                controller = Leap.Controller()
                print "Adding Listener."
                controller.add_listener(listener)#Attach the listener

                print "Press Enter to quit..."
                sys.stdin.readline()
                controller.remove_listener(listener)

            main()
        </script>
    </head>
    <body style="background-color:#1c1c1c;margin:0">
    </body>
</html>

```