def import_tasks(self, path):
        """
        Attempts to load tasks from a given path.
        :param path: Path to tasks.
        :return: None.
        """
        for zz in os.walk(path):
            for module in zz[2]:

                if module.endswith('.py'):

                    import importlib

                    # from tasks.message_popup import *



                    importlib.import_module('tasks.' + module[:-3])

                    print 'imported', module
Attempts to load tasks from a given path.
        :param path: Path to tasks.
        :return: None.