def _smudge_bytes(target, offset, magic_bytes):
    """
        Write magic bytes to a file relative from
        offset
    """
    click.echo('Writing {c} magic byes at position {offset} on file {file}'.format(
        c=len(magic_bytes), offset=offset, file=target))

    with open(target, 'r+b') as f:
        f.seek(offset)
        f.write(magic_bytes)
        f.flush()

    click.echo('Changes written')
Write magic bytes to a file relative from
        offset