build: check for presence of python ply