<s> import ConfigParser <EOL> import os . path <EOL> def get_configuration ( ) : <EOL> home_directory = os . path . expanduser ( '<STR_LIT>' ) <EOL> config_file = os . path . join ( home_directory , '<STR_LIT>' ) <EOL> if not os . path . exists ( config_file ) : <EOL> return None <EOL> config = ConfigParser . RawConfigParser ( ) <EOL> config . read ( config_file ) <EOL> return config <EOL> def get_google_credentials ( ) : <EOL> config = get_configuration ( ) <EOL> if not config : <EOL> return None , None <EOL> google_account_email = config . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> google_account_password = config . get ( '<STR_LIT>' , '<STR_LIT>' ) <EOL> return google_account_email , google_account_password <EOL> def get_valid_profiles ( ) : <EOL> config = get_configuration ( ) <EOL> if not config : <EOL> return None <EOL> profile_ids = config . get ( '<STR_LIT>' , '<STR_LIT>' ) . split ( '<STR_LIT:U+0020>' ) <EOL> return profile_ids </s>
