old_contents: #!/usr/bin/env python
  # -*- codinf: utf-8 -*-
  
  # Copyright (c) 2015-2016:
  #   Matthieu Estrada, ttamalfor@gmail.com
  #
  # This file is part of (AlignakApp).
  #
  # (AlignakApp) is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # (AlignakApp) is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with (AlignakApp).  If not, see <http://www.gnu.org/licenses/>.
  
  import sys
  
  from alignak_app.app import AlignakApp
  
  try:
      __import__('PyQt5')
      from PyQt5.QtWidgets import QApplication
      from PyQt5.QtGui import QIcon
  except ImportError:
      from PyQt4.QtGui import QIcon
      from PyQt4.Qt import QApplication
  
  app = QApplication(sys.argv)
  app.setQuitOnLastWindowClosed(False)
  
  alignak_app = AlignakApp()
  alignak_app.run()
  alignak_app.tray_icon.show()
  
  sys.exit(app.exec_())
  
new_contents: #!/usr/bin/env python
  # -*- codinf: utf-8 -*-
  
  # Copyright (c) 2015-2016:
  #   Matthieu Estrada, ttamalfor@gmail.com
  #
  # This file is part of (AlignakApp).
  #
  # (AlignakApp) is free software: you can redistribute it and/or modify
  # it under the terms of the GNU Affero General Public License as published by
  # the Free Software Foundation, either version 3 of the License, or
  # (at your option) any later version.
  #
  # (AlignakApp) is distributed in the hope that it will be useful,
  # but WITHOUT ANY WARRANTY; without even the implied warranty of
  # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
  # GNU Affero General Public License for more details.
  #
  # You should have received a copy of the GNU Affero General Public License
  # along with (AlignakApp).  If not, see <http://www.gnu.org/licenses/>.
  
  import sys
  
  from alignak_app.app import AlignakApp
  
  try:
      __import__('PyQt5')
      from PyQt5.QtWidgets import QApplication
  except ImportError:
      from PyQt4.Qt import QApplication
  
  app = QApplication(sys.argv)
  app.setQuitOnLastWindowClosed(False)
  
  alignak_app = AlignakApp()
  alignak_app.run()
  alignak_app.tray_icon.show()
  
  sys.exit(app.exec_())
  
subject: Remove unused import