def convert_byte(num):
    """
	this function will convert bytes to MB.... GB... etc
	"""
    step_unit = 1024
    for x in ['bytes', 'KB', 'MB', 'GB', 'TB']:
        if num < step_unit:
            return '%3.1f %s' % (num, x)
        num /= step_unit
