Ignoreing pylints 'Method could be a function'