title: change backlight brightness in linux with python
body: <p>I'm working on a python project which should be able to control my backlight brightness. I working with Ubuntu 17.04 and I already locate where the file is that show my backlight brightness</p>
  
  <pre><code>/sys/class/backlight/acpi_video0/brightness
  </code></pre>
  
  <p>the command that I can use in the bash terminal to change the value is</p>
  
  <pre><code>sudo su -c 'echo 12 &gt; /sys/class/backlight/acpi_video0/brightness'
  </code></pre>
  
  <p>but I have no clue how to implement this in a py project.
  Maybe this is also the wrong way to start.</p>
  
  <p>Thank you Guys for probably helping me out.</p>