I have a python script that create some files and it ask me to enter a password this script is called from bash scriptis their any way to get the entered password and echo it to text file 
get the input from a script and echo it to another file
bash;scripting
Since the python script has both the username and password, it could write them into the file for you.with open('/etc/openvpn/clients/%s/login.txt' % username, 'w') as login_log:    login_log.write('%s\n%s\n' % (username, password))which will open login.txt, overwriting the file if one already existed, and write the username on the first line then the password on the second line