Login works!
Fixed bugs in subprocess invocation and a relative file path that was quietly screwing up everything.