How to scale a geometry using pyRevit

Hi there,
I am truly challenged by solving a problem that initially seemed simple, but has turned into a huge challenge.
I need to create enlarged solids from my rooms. The rooms are irregular or L-shaped. I tried to extract the room boundaries and the direct shape, but the problem is that I cannot scale up correctly so that it preserves the room’s overall shape and location.

Could you kindly guide me on how to do that?

Best Regards,
Farshid