+def loadConfig(filename):
+ email = None
+ password = None
+ if os.path.exists(filename):
+ cp = SafeConfigParser()
+ cp.read([filename])
+ email = cp.get('twitter', 'email', None)
+ password = cp.get('twitter', 'password', None)
+ return email, password