Specifying a 500 handler as string. Removing unneeded imports.
__eq__ not actually needed. won't make any difference without this method.