Changes made to py file show on all sites

Apps are not site specific. So any change you make applies to all sites.

I think you can handle it using site name in your code.