calling extend should return self.

Signed-off-by: crynobone <crynobone@gmail.com>