Matrix Based Python Code Examples