Javascript End A Function Python Format Number With Leading