Document Layout Analysis Python Code