Basic txt file encryption using python