#https://docs.python.org/3/library/shlex.html#shlex.quote
from shlex import quote
command = 'ls -l {}'.format(quote(filename))