fixing 'arguments-differ', 'bare-except', 'expression-not-assigned', 'bad-builtin'