Updated python and java login scripts