Python linter errors

Is there any way of creating a linter for python?