doctests: make them pass on python3

Signed-off-by: David Aguilar <davvid@gmail.com>
test: add gravatar test case

Signed-off-by: David Aguilar <davvid@gmail.com>