Buffer to StopIteration instead of None
added pad option to Buffer.pull