factor: fix typo in python cmd, clean up formatting