python mode key for doc