[python] How to detect if numpy is installed