title: How can I execute pylint command from python code. Also what argument in pylint can make log message as per my need
body: <p>I have a scenario when I want to run the <code>pylint</code> command using a Python file.
  Using command prompt i am using</p>
  
  <pre><code>python3 -m pylint test.py
  </code></pre>
  
  <p>Apart from this i want to format my message such that i can later use split method to separate the arguments and feed in report like excel. Also replace code's like C0103 with more meaningful name.
  I tried below command from command prompt but could not get proper answer</p>
  
  <pre><code>python3 -m pylint --msg-template="{module}{obj}{line}{column}{msg}" init.py
  </code></pre>
  
  <p><strong>Code</strong></p>
  
  <pre><code># all of the following are equivalent
  my_string = 'Hello'
  print(my_string)
  
  my_string = "Hello"
  print(my_string)
  
  my_string = '''Hello'''
  print(my_string)
  
  # triple quotes string can extend multiple lines
  my_string = """Hello, welcome to
             the world of Python"""
  print(my_string)
  </code></pre>
  
  <p><strong>Output</strong></p>
  
  <pre><code>python3 -m pylint init.py
  ************* Module init
  init.py:14:0: C0304: Final newline missing (missing-final-newline)
  init.py:1:0: C0114: Missing module docstring (missing-module-docstring)
  init.py:2:0: C0103: Constant name "my_string" doesn't conform to UPPER_CASE naming style (invalid-name)
  init.py:5:0: C0103: Constant name "my_string" doesn't conform to UPPER_CASE naming style (invalid-name)
  init.py:8:0: C0103: Constant name "my_string" doesn't conform to UPPER_CASE naming style (invalid-name)
  init.py:12:0: C0103: Constant name "my_string" doesn't conform to UPPER_CASE naming style (invalid-name)
  
  -------------------------------------------------------------------
  Your code has been rated at 2.50/10 (previous run: -1.39/10, +3.89)
  </code></pre>