Python Detect If Variable Is Zero