title: Why am I getting an error "TypeError: method() takes exactly 1 argument (2 given) in Python using Directory API?
body: <p>I am attempting to write a command line script that works with Organization Units within our Google Apps domain. Therefore, using the many convoluted documentation from Google on this, I have successfully created the application in the API Console, turned on Admin SDK, and have successfully connected within my script. However, when I create the directory service object (which seems to be successful) I am having issues interacting with it because I receive that message. I HAVE installed the Python API package as well. Here is my current code:</p>
  
  <pre><code>import argparse
  import httplib2
  import os
  import sys
  from apiclient.discovery import build
  from oauth2client.client import SignedJwtAssertionCredentials
  
  f = file("xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx-privatekey.p12", "rb")
  key = f.read()
  f.close()
  
  credentials = SignedJwtAssertionCredentials(
      "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx@developer.gserviceaccount.com",
      key,
      scope = "https://www.googleapis.com/auth/admin.directory.orgunit"
  )
  
  http = httplib2.Http()
  http = credentials.authorize(http)
  
  directoryservice = build("admin", "directory_v1", http=http)
  orgunits = directoryservice.orgunits()
  
  thelist = orgunits.list('my_customer')
  </code></pre>
  
  <p>When I run that code I receive the error message: </p>
  
  <pre><code>Traceback (most recent call last):
    File "test.py", line 33, in &lt;module&gt;
      orgunits.list('my_customer')
  TypeError: method() takes exactly 1 argument (2 given)
  </code></pre>
  
  <p>I tried without using the "my_customer" alias, but then the error complains that I haven't provided it. Any help would be appreciated, I haven't use Python in a very long time; it very well may be user error.</p>