__author__ = 'Christof Pieloth'

import logging
import subprocess


class Utils:
    log = logging.getLogger(__name__)

    @staticmethod
    def check_program(program, arg):
        try:
            subprocess.call([program, arg], stdout=subprocess.PIPE)
            return True
        except OSError:
            Utils.log.error("Could not found: " + program)
            return False


class UtilsUI:
    @staticmethod
    def ask_for_execute(action):
        var = input(action + " y/n? ")
        if var.startswith('y'):
            return True
        else:
            return False

    @staticmethod
    def ask_for_make_jobs():
        jobs = 2
        try:
            jobs = int(input("Number of jobs (default: 2): "))
        except ValueError:
            print("Wrong input format.")
        if jobs < 1:
            jobs = 1
        print("Using job=" + str(jobs))
        return jobs

    @staticmethod
    def print_install_begin(dep_name):
        # print('=' * len(dep_name))
        print('=' * 80)
        print(dep_name)
        print('-' * 80)

    @staticmethod
    def print_install_end(dep_name):
        print('-' * 80)
        print(dep_name)
        print('=' * 80)

    @staticmethod
    def print_step_begin(action_str):
        info = action_str + " ..."
        print(info)
        print('-' * 40)

    @staticmethod
    def print_step_end(action_str):
        info = action_str + " ... finished!"
        print('-' * 40)
        print(info)

    @staticmethod
    def print_env_var(name_env, value=None):
        if value is None:
            if len(name_env) == 1:
                print('Environment variable to set:')
            else:
                print('Environment variables to set:')
            print()
            for name, value in name_env.items():
                print(name + "=" + value)
        else:
            print('Environment variable to set:')
            print()
            print(name_env + "=" + value)
        print()
@@ -398,16 +398,64 @@
 tilsUI:%0A
+    COLUMNS_INSTALL = 80%0A    COLUMNS_STEP = 40%0A%0A
     @sta
@@ -1011,10 +1011,8 @@
     
- #
  pri
@@ -1024,45 +1024,31 @@
 ' * 
-len(dep_name))%0A        print('=' * 80
+UtilsUI.COLUMNS_INSTALL
 )%0A  
@@ -1085,26 +1085,47 @@
 print('-' * 
-80
+UtilsUI.COLUMNS_INSTALL
 )%0A%0A    @stat
@@ -1190,18 +1190,39 @@
 t('-' * 
-80
+UtilsUI.COLUMNS_INSTALL
 )%0A      
@@ -1259,18 +1259,39 @@
 t('=' * 
-80
+UtilsUI.COLUMNS_INSTALL
 )%0A%0A    @
@@ -1416,18 +1416,36 @@
 t('-' * 
-40
+UtilsUI.COLUMNS_STEP
 )%0A%0A    @
@@ -1558,18 +1558,36 @@
 t('-' * 
-40
+UtilsUI.COLUMNS_STEP
 )%0A      

Use constants.