oops '>=' not supported between instances of 'tuple' and 'int'