Document Layout Analysis Python Programming