Python : Insecure stream encryption