printing for older numpy versions