API_PREFIX goes back one level. Pep-8 code cleanup. repair _get_idea_query.