In Albany , Boston , Buffalo , Chicago , Jersey City , Kansas City , New York and Pittsburgh , which is by no means a complete list , tens of thousands of Irish-Americans found a way out of the slums thanks to their political machines .