Python Relative Seek

buffer.seek(d, 0)  # absolute seek (default)
buffer.seek(0+d, 1)  # relative seek on d
Concerned Cow