#!/usr/bin/env python
import sys
import math 

barwidth=15
barchars=" -=#"

class StatusWrapper:
  def __init__(self, fd):
    self.displayed=""
    self.fd = fd
  def write(self, s):
    if self.displayed== "":
      self.fd.write(s)
    else:
      old=self.displayed
      self.status("")