Fix for python 3 and clearify condition
Add docs