Programmatically login a Python web crawler