Port picard to setup-py (python apiv2)