python - Login with requests -


my code doesn't sign me in

            url = 'https://www.codecademy.com/login?redirect=https%3a%2f%2fwww.codecademy.com%2f'         values = {'user[login]': email,                   'user[password]': password}         r = requests.post(url, data=values)          b =requests.get('https://www.codecademy.com/learn')         print b.text 

it prints out login/signup page source. appreciated!btw test site. if other ways it appreciated!