__nonzero__() is __bool__() in python3
Porting server stuff