fixed docstring and changed type to etype avoiding python builtin

Signed-off-by: Brian Coca <briancoca+dev@gmail.com>