python wrapper for blocked array