diff --git a/LICENSE.txt b/LICENSE.txt
new file mode 100644
index 0000000000000000000000000000000000000000..18202f1e946329bf84dd5dbfc4a259af90cfe234
--- /dev/null
+++ b/LICENSE.txt
@@ -0,0 +1,21 @@
+The MIT License (MIT)
+
+Copyright (C) since 2011 CESNET, z.s.p.o
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/bin/mentat-backup.py b/bin/mentat-backup.py
index 3b6f64ae99288c37abd1e1a4e2d5a8a32ab72b13..14e18fe12a68a2b99a9e7a73ffbb9621d1fda43b 100755
--- a/bin/mentat-backup.py
+++ b/bin/mentat-backup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-cleanup.py b/bin/mentat-cleanup.py
index dc644211817706f01ff877c12b85105df67ec7dc..ca3ed7c2f67b917b85d6a7ef7b1fd587f0a0f489 100755
--- a/bin/mentat-cleanup.py
+++ b/bin/mentat-cleanup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-controller.py b/bin/mentat-controller.py
index 59d88b295f18b3fb37eaa357eb532453414397b3..d58723fb3c070c4b521e4f90b612020e32b7c234 100755
--- a/bin/mentat-controller.py
+++ b/bin/mentat-controller.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-dbmngr.py b/bin/mentat-dbmngr.py
index 737d5562524fef0cc932730cb3fa77e9bffd65d7..45872e73862d34311416b3ff35223a923702e46a 100755
--- a/bin/mentat-dbmngr.py
+++ b/bin/mentat-dbmngr.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-ideagen.py b/bin/mentat-ideagen.py
index bb0537e9b96cce316905221debd7f02f82c26953..bd0f56ca2b4318069c48e0db3a40393e379bc2a9 100755
--- a/bin/mentat-ideagen.py
+++ b/bin/mentat-ideagen.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/mentat-inspector.py b/bin/mentat-inspector.py
index 4ee12ba5950eae085ca3fd31a4107c5a79b85e15..29b4f56e1cbd9fb6c3b9a976480ee0a3adc759f2 100755
--- a/bin/mentat-inspector.py
+++ b/bin/mentat-inspector.py
@@ -1,21 +1,41 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
-import pprint
 
+"""
+Daemon component capable of inspection IDEA messaes according to given
+set of filtering rules and performing number of associated actions.
+
+encapsulating :py:mod:`mentat.idea.mongodb`
+library and capable .
+"""
+
+
+__version__ = "0.1"
+__author__ = "Jan Mach <jan.mach@cesnet.cz>"
+__credits__ = "Pavel Kácha <pavel.kacha@cesnet.cz>, Andrea Kropáčová <andrea.kropacova@cesnet.cz>"
+
+
+#
+# Python system libraries
+#
 import os
 import sys
 
+
 # Generate the path to custom 'lib' directory
 lib = os.path.abspath(os.path.join(os.path.dirname(__file__), '../lib'))
 sys.path.insert(0, lib)
 lib = os.path.abspath(os.path.join(os.path.dirname(__file__), '../bin'))
 sys.path.insert(0, lib)
 
+
 #
 # Custom libraries
 #
@@ -27,12 +47,11 @@ import mentat.daemon.component.inspector
 import mentat.daemon.component.mailer
 import mentat.daemon.component.commiter
 
+
 class MentatInspectorDaemon(mentat.daemon.piper.PiperDaemon):
-    """
-    Daemon for IDEA message inspections.
-    """
     pass
 
+
 if __name__ == "__main__":
     """
     Execute the daemon.
diff --git a/bin/mentat-sampler.py b/bin/mentat-sampler.py
index 9020719903f39b094d34d60e364199bb43ff94a4..829d692a5416948abe8bca1252b1dbb9148d10ee 100755
--- a/bin/mentat-sampler.py
+++ b/bin/mentat-sampler.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/test_mentat-backup.py b/bin/test_mentat-backup.py
index 9739ed13bb158fa66595d6de7eea9dc81da08e2b..18c02ca5d5d143d77d3c87b351d968c5b36e0b61 100755
--- a/bin/test_mentat-backup.py
+++ b/bin/test_mentat-backup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/test_mentat-cleanup.py b/bin/test_mentat-cleanup.py
index 2db3932d471d826886f60fb13207b6a134502bc4..490bf2fb3ea3d44300436a624960038cd8de65e4 100644
--- a/bin/test_mentat-cleanup.py
+++ b/bin/test_mentat-cleanup.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/bin/test_mentat-inspector.py b/bin/test_mentat-inspector.py
index 07e6c751a52d682c69aee4a14be8111b407816c2..6666d01c7766a38e7b1631cf14ea140873598878 100644
--- a/bin/test_mentat-inspector.py
+++ b/bin/test_mentat-inspector.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/deploy/ctrl/copyright b/deploy/ctrl/copyright
index e7f694dc692ac108f9183156f7a0af39598e43b3..c588c6f42a96d16eaee9e9ef6a0cc05064f4a59c 100644
--- a/deploy/ctrl/copyright
+++ b/deploy/ctrl/copyright
@@ -1,9 +1,30 @@
 mentat-ng
 
-Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net)
+Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 Authors: Jan Mach <jan.mach@cesnet.cz>
          Pavel Kácha <pavel.kacha@cesnet.cz>
+Credits: Andrea Kropáčová <andrea.kropacova@cesnet.cz>
 
-2017-01-01
+The entire code base may be distributed under the terms of the MIT license.
 
-The entire code base may be distributed under the terms of the MIT-style license.
+---
+
+The MIT License (MIT)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/lib/mentat/const.py b/lib/mentat/const.py
index 1763e76a55e95ed0c9845fca919c1e9be54dec51..4de6b04ac727c2755d90bfc60a5c05e7469deb41 100644
--- a/lib/mentat/const.py
+++ b/lib/mentat/const.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/commiter.py b/lib/mentat/daemon/component/commiter.py
index 55e18d179963037fe32fb04caedb07cb5b5bdb12..6523a18356195ea69447caf939d4950499f281ee 100644
--- a/lib/mentat/daemon/component/commiter.py
+++ b/lib/mentat/daemon/component/commiter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/filer.py b/lib/mentat/daemon/component/filer.py
index e887c3dd0f60f2ca44bae120ac582c523368d529..05db2db30d7276dbc814e444f426894458d6117e 100644
--- a/lib/mentat/daemon/component/filer.py
+++ b/lib/mentat/daemon/component/filer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/filter.py b/lib/mentat/daemon/component/filter.py
index 3bee11ac7a5f66c78b3f0806c9afeadee3c87d61..9f2e363a0091153c77b24ebf4262ae6c07788d70 100644
--- a/lib/mentat/daemon/component/filter.py
+++ b/lib/mentat/daemon/component/filter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/inspector.py b/lib/mentat/daemon/component/inspector.py
index 594ed15097fba3c9a107d232ae123f7ce8abe24b..8ba334eefd624f0a68f113feeec0537fc15db0a4 100644
--- a/lib/mentat/daemon/component/inspector.py
+++ b/lib/mentat/daemon/component/inspector.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/mailer.py b/lib/mentat/daemon/component/mailer.py
index c7457c8fcee63c8492878a86b0fffcd4efc4a0ba..fe9f839049856ec7cc5f5f09c7a45429053840d4 100644
--- a/lib/mentat/daemon/component/mailer.py
+++ b/lib/mentat/daemon/component/mailer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/parser.py b/lib/mentat/daemon/component/parser.py
index a79466057161d7096d3e392c692cd20689619c97..42536769ac9b083bbe66c3c35bf969e5786c79a3 100644
--- a/lib/mentat/daemon/component/parser.py
+++ b/lib/mentat/daemon/component/parser.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/printer.py b/lib/mentat/daemon/component/printer.py
index 09c6e4beae734f808bfbd379b9ea3a3066ddb448..bbc5a4d19180f21d4102771917410e97b90726be 100644
--- a/lib/mentat/daemon/component/printer.py
+++ b/lib/mentat/daemon/component/printer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/sampler.py b/lib/mentat/daemon/component/sampler.py
index 5dca55bbb519503be316f97e79c0b68c49d01643..3ae17f26fb381021984c9887483d2b2032f8d08a 100644
--- a/lib/mentat/daemon/component/sampler.py
+++ b/lib/mentat/daemon/component/sampler.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_commiter.py b/lib/mentat/daemon/component/test_commiter.py
index 8bdd9c6c891243bc0e3e66e4afaa466899fdeee9..bd1d228bf43c1f05091ffad9b49442c5328a90be 100644
--- a/lib/mentat/daemon/component/test_commiter.py
+++ b/lib/mentat/daemon/component/test_commiter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_filer.py b/lib/mentat/daemon/component/test_filer.py
index 09e48cf36efd8f00f6ff5bbf3ba50c60d421d480..c6bea60c3af42e775166d50675e592146151701e 100644
--- a/lib/mentat/daemon/component/test_filer.py
+++ b/lib/mentat/daemon/component/test_filer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_filter.py b/lib/mentat/daemon/component/test_filter.py
index 68271b6144c7250f259b87f3edbda4e82be00e81..df3b58b89b9c8dd6444fb1f0686dba7f809f62e7 100644
--- a/lib/mentat/daemon/component/test_filter.py
+++ b/lib/mentat/daemon/component/test_filter.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_inspector.py b/lib/mentat/daemon/component/test_inspector.py
index e136b0156b173c6ce34a043a70accbdd465be148..6ba15040bd4dd518a8a188595776932a54bcb813 100644
--- a/lib/mentat/daemon/component/test_inspector.py
+++ b/lib/mentat/daemon/component/test_inspector.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_mailer.py b/lib/mentat/daemon/component/test_mailer.py
index 3a97e6271c333a6c19fec7438cd883807d2abb71..3d72db9291b8ecb30de8cb616df2ec44c1f47b19 100644
--- a/lib/mentat/daemon/component/test_mailer.py
+++ b/lib/mentat/daemon/component/test_mailer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_parser.py b/lib/mentat/daemon/component/test_parser.py
index a99f43572430892001bd27c8d728007a76c27806..919986ffefe6551e639f707f4d42f51127c3b8fa 100644
--- a/lib/mentat/daemon/component/test_parser.py
+++ b/lib/mentat/daemon/component/test_parser.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_printer.py b/lib/mentat/daemon/component/test_printer.py
index 4e2b669b8a7f567946b4fff4e4a19510a7bc4c34..c4d4009ab8d3b1e0d851a6a470cc02273f511ed0 100644
--- a/lib/mentat/daemon/component/test_printer.py
+++ b/lib/mentat/daemon/component/test_printer.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/component/test_sampler.py b/lib/mentat/daemon/component/test_sampler.py
index a7e149ba713746bb2e61c83774c8135a043ee713..445422b8a0f47b1d31ded1641b11bb4ec0b37b48 100644
--- a/lib/mentat/daemon/component/test_sampler.py
+++ b/lib/mentat/daemon/component/test_sampler.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/piper.py b/lib/mentat/daemon/piper.py
index 9f5faf975b115208f526cf72600420d51ae10dc6..9b4dd15342726502685ec8d2ef3347942c58a670 100644
--- a/lib/mentat/daemon/piper.py
+++ b/lib/mentat/daemon/piper.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/daemon/test_piper.py b/lib/mentat/daemon/test_piper.py
index 3a2cb0283b2f3823923ff82dd0ef1be747c32803..e6ab57bdaa3c83d3f625a77e3abc3ee5a598da5b 100644
--- a/lib/mentat/daemon/test_piper.py
+++ b/lib/mentat/daemon/test_piper.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/dirq.py b/lib/mentat/dirq.py
index d6561df30a726bc5736503958557e6a39c74c5ed..de59b18d7e8b72f0e9b617e8aa4513e68bdb7cdd 100644
--- a/lib/mentat/dirq.py
+++ b/lib/mentat/dirq.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/filters.py b/lib/mentat/filtering/filters.py
index d92c6a3f058262d2b614aa65e88c59c492d1e7db..27f4b400bb66038dedbe1c1e41b8b36b4fd7b04c 100644
--- a/lib/mentat/filtering/filters.py
+++ b/lib/mentat/filtering/filters.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/gparser.py b/lib/mentat/filtering/gparser.py
index 5a897b73a4b9812aa7f11018ed046e99ba466ab6..3f8ef6458557557050d95f45cdeeb466400bb583 100644
--- a/lib/mentat/filtering/gparser.py
+++ b/lib/mentat/filtering/gparser.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/jpath.py b/lib/mentat/filtering/jpath.py
index 7550e7e0dcbc8893bedac6517f395a10451622f5..628d0107f262ec62fc5f73c275c49a18ccf3ccda 100644
--- a/lib/mentat/filtering/jpath.py
+++ b/lib/mentat/filtering/jpath.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/lexer.py b/lib/mentat/filtering/lexer.py
index 0e42aec5c87cdd8b34a67ad3e514a697eb1ace70..cc11fda5de1324d0070f8c127e491c349b132997 100644
--- a/lib/mentat/filtering/lexer.py
+++ b/lib/mentat/filtering/lexer.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/rules.py b/lib/mentat/filtering/rules.py
index 48862e43261ceaf7f3ed247f3672e1ab3966780c..059d97fd69f4d98bd960a737bb30c7aa7f1b29a2 100644
--- a/lib/mentat/filtering/rules.py
+++ b/lib/mentat/filtering/rules.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_filters.py b/lib/mentat/filtering/test_filters.py
index 2325b8b8a982599d3570649707322b34ff60b824..9bfd1969af84f0c8a25c48b12a020042b8050e65 100644
--- a/lib/mentat/filtering/test_filters.py
+++ b/lib/mentat/filtering/test_filters.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_filters_idea.py b/lib/mentat/filtering/test_filters_idea.py
index ef8de0ce6911165b8a0a16843447403c8097f657..4439fa6296583b0bd53b55c8cd68a0506dc39a86 100644
--- a/lib/mentat/filtering/test_filters_idea.py
+++ b/lib/mentat/filtering/test_filters_idea.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_filters_inspector.py b/lib/mentat/filtering/test_filters_inspector.py
index 0121c9275227a7e805ea5216837f2ae5f4703a84..7e7be2f5a9d07f7fc11882399ef79a26373aa691 100644
--- a/lib/mentat/filtering/test_filters_inspector.py
+++ b/lib/mentat/filtering/test_filters_inspector.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_gparser.py b/lib/mentat/filtering/test_gparser.py
index 39d4ab2f3e03120dabf5807525ae519b486dbdf1..80a5d7c9246b5dd730c2aba869179ba048bd7bd3 100644
--- a/lib/mentat/filtering/test_gparser.py
+++ b/lib/mentat/filtering/test_gparser.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_jpath.py b/lib/mentat/filtering/test_jpath.py
index b042533b8d299b183fe6fe83893e977b01d45682..1a8ec2e0d9ebdd7da99f8f41ddbbea98aaf4f1c0 100644
--- a/lib/mentat/filtering/test_jpath.py
+++ b/lib/mentat/filtering/test_jpath.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_lexer.py b/lib/mentat/filtering/test_lexer.py
index 4263914c727f72fc5adca8a73eb15fad5b472f7d..342632b52380f2c18c2d64d4864a4d6b72a4b4c1 100644
--- a/lib/mentat/filtering/test_lexer.py
+++ b/lib/mentat/filtering/test_lexer.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/filtering/test_rules.py b/lib/mentat/filtering/test_rules.py
index e4f96a180abd1d8254aa659fb7f2e71b81cfc9d8..6889eb99bb43345f77867d0e68d15599ff0dfee5 100644
--- a/lib/mentat/filtering/test_rules.py
+++ b/lib/mentat/filtering/test_rules.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/internal.py b/lib/mentat/idea/internal.py
index 4bc03f4b0e28923c79a8a24e1c66d8fd73b39e98..507b54fdf35fc5442a8679522465280d1332db6b 100644
--- a/lib/mentat/idea/internal.py
+++ b/lib/mentat/idea/internal.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/mongodb.py b/lib/mentat/idea/mongodb.py
index c48068e7f48c8f4c6f586553140b55404b4540fb..1900645daa0b531fc427962fa036646028770e04 100644
--- a/lib/mentat/idea/mongodb.py
+++ b/lib/mentat/idea/mongodb.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/test_internal.py b/lib/mentat/idea/test_internal.py
index 263a3ce6b2916da056ef3878322a3f215f2a2651..79070f243796a82feac07d41187e70aa84a233e3 100644
--- a/lib/mentat/idea/test_internal.py
+++ b/lib/mentat/idea/test_internal.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/idea/test_mongodb.py b/lib/mentat/idea/test_mongodb.py
index 78ccbf25113c0de8e7e9f2c4130334f3bb5b68ae..9d9863a5b4db3dc27cf4d052143152d83d87b402 100644
--- a/lib/mentat/idea/test_mongodb.py
+++ b/lib/mentat/idea/test_mongodb.py
@@ -1,7 +1,9 @@
 #!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/storage.py b/lib/mentat/storage.py
index b51e56d0802aa2235f3147d0f7326a2a80267347..a160ac2a78423bebc47c06f568bdaebde232a824 100644
--- a/lib/mentat/storage.py
+++ b/lib/mentat/storage.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/test_dirq.py b/lib/mentat/test_dirq.py
index bad7632b584598f3525122dcbd4f6338df8303f1..0f07529b309b06570dac614bc8610b39d3350b23 100644
--- a/lib/mentat/test_dirq.py
+++ b/lib/mentat/test_dirq.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/test_idea.py b/lib/mentat/test_idea.py
index 4a71862189eb116ff49989370f75a40e0babdbe7..4fcf428720a7a9ee7054c9126c5b29ef1f99efdc 100644
--- a/lib/mentat/test_idea.py
+++ b/lib/mentat/test_idea.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------
 
diff --git a/lib/mentat/test_storage.py b/lib/mentat/test_storage.py
index 5389b4a9c48e78302f7c183d9a6a9424869471c2..60c3b430e3ba2369733c6ba95ff57aa3b56ea2f6 100644
--- a/lib/mentat/test_storage.py
+++ b/lib/mentat/test_storage.py
@@ -1,7 +1,9 @@
-#!/usr/bin/python3
+#!/usr/bin/env python3
 # -*- coding: utf-8 -*-
 #-------------------------------------------------------------------------------
-# Copyright (C) since 2011 CESNET, z.s.p.o
+# This file is part of Mentat system (https://mentat.cesnet.cz/).
+#
+# Copyright (C) since 2011 CESNET, z.s.p.o (http://www.ces.net/)
 # Use of this source is governed by the MIT license, see LICENSE file.
 #-------------------------------------------------------------------------------