Python - not sure what's wrong with the syntax, help would be appreciated
<p>I'm trying to code some file distribution script:
The script receives the file/dir to distribute as var 'filename', the destination path as 'path' and then should run through all servers listed in srv.list and scp the file/dir to each one of them. In addition there's that ropt which is used if the user input is a dir rather than a file.</p>

<pre><code>#!/usr/bin/python
import os
dirList = os.listdir("./")
srvlist = os.system("cat srv.lst")
filename = raw_input("Please enter file/dir to distribute")
path = raw_input("Please enter destination path")
ropt = ()
for d in dirList:
    if os.path.isdir(d) == True:
        ropt = "-r"
        os.system("/usr/bin/scp " (ropt)"-- "(filename)" "(srvlist)":"(path)
    else:
        os.system("/usr/bin/scp "(filename)" "(srvlist)":"(path))
</code></pre>

<p>Output:</p>

<pre><code>Please enter file/dir to distribute: 1.py
Please enter destination path: /root/
Traceback (most recent call last):
  File "1.py", line 13, in ?
    os.system("/usr/bin/scp "+filename+" "+srvlist+":"+path)
TypeError: cannot concatenate 'str' and 'int' objects
[root@g1-lon distribute]#
</code></pre>
