replace 1/0 by 1 // 0 to get rid of DeprecationWarning (and PEP8 issue)