new_contents: #!/usr/bin/python
  
  import sys
  
  if len(sys.argv) >= 2:
      value = int(sys.argv[1])
      cols_limit = int(sys.argv[2])
      esc = chr(27)
      if value:
          col_char = '1'
      else:
          col_char = '2'
      print ''.join((
          esc,
          '[4',
          col_char,
          'm',
          ' ' * (cols_limit - 2),
          esc,
          '[0m',
          ))
  else:
      print '''
  Usage: status_code number_of_columns
  
  1. status code: 0 - OK (green color), other values - BAD (red color)
  2. number of columns: the width of text console
  ''' % dict(
          prog_name=sys.argv[0],
          )
  
subject: Add red_green_bar.py