title: Parse PHP file variables from Python script
body: <p>I need to get some data from PHP(Wordpress) config files from my Python script. How I can parse config data? For example, how I can get <strong>$wp_version</strong> value?
  Config example:</p>
  
  <pre class="lang-php prettyprint-override"><code>/**
   * The WordPress version string
   *
   * @global string $wp_version
   */
  $wp_version = '3.5.1';
  
  /**
   * Holds the WordPress DB revision, increments when changes are made to the WordPress DB schema.
   *
   * @global int $wp_db_version
   */
  $wp_db_version = 22441;
  
  /**
   * Holds the TinyMCE version
   *
   * @global string $tinymce_version
   */
  $tinymce_version = '358-23224';
  
  /**
   * Holds the required PHP version
   *
   * @global string $required_php_version
   */
  $required_php_version = '5.2.4';
  
  /**
   * Holds the required MySQL version
   *
   * @global string $required_mysql_version
   */
  $required_mysql_version = '5.0';
  
  $wp_local_package = 'en_EN';
  </code></pre>