title: AttributeError: module 'x' has no attribute 'y'
body: <p>I'm trying to move a python function over to Google Cloud Functions, and I seem to be having an issue with aliases.</p>
  <p>I have a module with the following in its init;</p>
  <pre><code>import tweetBot.generator, tweetBot.poster
  
  # Add aliases when this module is imported
  tweetBot.ebooksGen = tweetBot.generator.ebooksGen
  tweetBot.genreGen = tweetBot.generator.genreGen
  tweetBot.variantGen = tweetBot.generator.variantGen
  
  tweetBot.postTweet = tweetBot.poster.postTweet
  </code></pre>
  <p>It's then imported with a simple <code>import tweetBot</code>.</p>
  <p>Running this on my local machine, it works perfectly and the function has absolutely no issues. The output is all correct, and everything is fine.</p>
  <p>However, when running this using Google Cloud Functions, I get the following error;</p>
  <p><code>AttributeError: module 'tweetBot' has no attribute 'genreGen'</code></p>
  <p>This makes absolutely no sense to me, since it is absolutely defined in the import. In addition, I know this works because it's working absolutely fine on my local machine from the exact same repo.</p>
  <p><a href="https://github.com/Jademalo/JadeBots/tree/gcp-functions" rel="nofollow noreferrer">https://github.com/Jademalo/JadeBots/tree/gcp-functions</a></p>
  <p>Ignore the code being terrible, at the very least it works. I simply don't understand why I'm having an attribute error running it on Google Cloud when it's absolutely fine locally.</p>
  <p>Thanks</p>
  <hr />
  <p>EDIT: After replacing the calls for the aliases with the originals (such as <code>tweetBot.generator.genreGen</code>, I'm still having the same issue;</p>
  <pre><code>  File &quot;/workspace/JadeBots.py&quot;, line 18, in postGenreDefining
      tweetText, altGenreGameDebug, altGenreExtraDebug, gameText, genreText, altPostDebug = tweetBot.generator.genreGen(gameFile, genreFile, genreExtraFile, altPostFreq, altGenreGameFreq, altGenreExtraFreq)
  AttributeError: module 'tweetBot' has no attribute 'generator' 
  </code></pre>