Python Format Numpy Array Methods And Attribute