Accessing Matrix Elements In Python