Revert "python depend only working under windows so"

This reverts commit 89f6ff4c296de5e61d5bfb0cfef55e482839e227.