Python Define Static Variable In Function