L = ['title', 'email', 'password2', 'password1', 'first_name', 'last_name',
    'next', 'newsletter']
i = L.index('password2')
L[i:i + 2] = L[i + 1:i - 1:-1]
How to switch position of two items in a Python list?