Projective Structures, Neighborhoods of Rational Curves and Painlevé equations