int() argument must be a string or a number, not 'NoneType'