Adding parent keyword in new_figure_manager. Example simplification