title: TensorFlow tf.flag issue: FLAGS.__dict__['__flags'].items()
body: <p>I am trying to use the following commands in TensorFlow 1.5.0 and am receiving an unexpected error, considering I got this code off of Github and appeared to be working from everybody's feedback there. I suck at coding so I am presuming it is totally a stupid mistake</p>
  
  <p>The first excerpt is <code>(file1==flow_trainv2.py):</code></p>
  
  <pre><code>TRAIN_DIR = make_checkpoint_path(FLAGS.base_dir, FLAGS)
  </code></pre>
  
  <p>which calls on this excerpt in a separate file <code>(file2==experiment_manager.py):</code></p>
  
  <pre><code>for k, v in FLAGS.__dict__['__flags'].items():
  </code></pre>
  
  <p>The error I receive is:</p>
  
  <pre><code>Traceback (most recent call last):
  
  File "flow_trainv2.py", line 29, in &lt;module&gt;
      TRAIN_DIR = make_checkpoint_path(FLAGS.base_dir, FLAGS)
  File "C:\...\experiment_manager.py", line 12, in make_checkpoint_path
      for k, v in FLAGS.__dict__['__flags'].items():
  KeyError: '__flags'
  </code></pre>
  
  <p>I can run the 2nd file on it's own and it runs without error. So it is confusing to me that when I import the variable <code>make_checkpoint_path</code> from the first file, it returns the error above.</p>