Fix Python lint errors