Writing Efficient Python Code Run