You can define P = var('P', latex_name=r'\pmb{\mathscr{P}}'), which displays as $\pmb{\mathscr{P}}$.