This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import os | |
| path = os.getcwd() | |
| for root, dirs, files in os.walk(path): | |
| print("visiting: ", root) | |
| os.chdir(root) | |
| py_files = [file for file in files if file[-3:]=='.py'] | |
| for py_file in py_files: | |
| cmd = "python {0}".format(py_file) | |
| print("running: ", cmd) | 
  
    
      This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
      Learn more about bidirectional Unicode characters
    
  
  
    
  | import twitter, sys, getpass, os | |
| def call_api(username,password): | |
| api = twitter.Api(username,password) | |
| friends = api.GetFriends() | |
| followers = api.GetFollowers() | |
| heathens = filter(lambda x: x not in followers,friends) | |
| print "There are %i people you follow who do not follow you:" % len(heathens) | |
| for heathen in heathens: | |
| print heathen.screen_name |