Die Zauberflote '' was written for the Theater auf der Wieden in the Vienna suburbs , a kind of people 's theater run by Emanuel Schikaneder , who tried to set the place apart from the stuffy opera palaces downtown .