paypamad backend (python version)