Update glance.py

Fix issue #6: Can not start properly