Restrict arguments to gravatar_url as per @abadger's comments.
Use the pyLibravatar package for .avatar_url() as per @fmarier's suggestion.