Import the class:
from NetcraftAPI import NetcraftAPI
Then, search for a specific domain:
res = NetcraftAPI({'verbose': True}).search('microsoft.com')
print res
Result is an array of all subdomains.
Feel free to open issues, contribute and submit your Pull Requests. You can also ping me on Twitter (@PaulWebSec)