Added the function extractPoliticianIdFromKey