#27 refactoring function for generating facade.py