python3 only; option for file permission 640