def update_progress(progress, task='Progress of task'):
    """Edits 1 line in terminal to display progress. Progress is in [0,1]"""
    print('\rProgress of task: [{0:50s}] {1:.1f}%'.format('#' * int(
        progress * 50), progress * 100), end='', flush=True)
