python: fixed nginx conf and added restart on upgrade-charm.