python c-extension to test basic numpy array manipulations