Bug fix for: TypeError: unsupported operand type(s) for +: 'NoneType' and 'int'.
make it pythonic
minor cleanup