Parse python code, for specific pep8 issues
When I copy&amp;paste your code into my editor, it immediately greets me with 50 errors and warnings. To be fair, some of these are duplicates, because I have multiple linters configured. However, well over 20 of those are real. And ironically, at least 6 of those would have been reported by your own code!
PEP8 violations

Maximum line length
Blank lines (after the module docstring before the first method)
Single space around operators
Function names should be lower_snake_case

Missing import
You are missing the import for re.
Missing definitions
You are missing the definitions for issues and code.
Invalid escape sequence
\ is the escape character in string literals, therefore \s is interpreted as an escape sequence, but it is not a valid escape sequence. If you want to have a literal backslash in your string, you need to escape it with another backslash: \\s.
Missing docstrings
All of your functions are missing docstrings.
Naming
regex, regex1, and regex2 are not very descriptive names.
Bugs
S001 should use 72 as the maximum line length for docstrings and comments, and only use 79 for code. Also, there is a problem with PEP8 itself: it limits the line length to 79/72 characters, but it should instead limit the line length to 79/72 columns. There are characters that take up 2 columns, and there are characters that take up 0 columns. Your code uses characters, as specified by PEP8, so it is correct as far as PEP8 is concerned, but columns would make more sense.
S003 will incorrectly flag this:
&quot;&quot;&quot;
;
&quot;&quot;&quot;

S004 will incorrectly flag this:
&quot; #&quot;

S005 will incorrectly flag this:
&quot;# TODO&quot;