Use lambda x over lambda(x) syntax
Use TypeError as e over TypeError, e syntax