Improve python support

When splitting statements, it makes sense to ignore strings and
comments.