Equivalent effective Lagrangians for Scherk-Schwarz compactifications