I have logged with user credentials using the following code:
import requests url_login=\'https://test.com/admin/\' user = \'test\' password = \'test\' header