title: attribute errors: module has no attribute in tensorflow
body: <p>I am trying to run a sample script where I use </p>
  
  <pre><code>import tensorflow as tf
  def main():
    if __name__ = '__main__':
    tf.app.run(main = main)
  </code></pre>
  
  <p>that throws an error: </p>
  
  <pre><code>AttributeError: module 'tensorflow' has no attribute 'app'
  </code></pre>
  
  <p>but when i run it as: </p>
  
  <pre><code>from tensorflow.python.platform import app
  </code></pre>
  
  <p>it runs well.. the python version I am using is 3.6.1 and tensorflow version: 0.1.8 </p>
  
  <p>actuall even </p>
  
  <pre><code>print(tf.__version__)
  </code></pre>
  
  <p>is showing an attribute error.. </p>
  
  <pre><code>AttributeError: module 'tensorflow' has no attribute '__version__'
  </code></pre>