Python: fix make publish

Review 1056 by @Tryneus