I was looking for FTP server implemented in Python and came across this <https://gist.github.com/scturtle/1035886> . I tried to understand it but being a web developer and fairly new Python I found it confusing.

**Here's what I don't understand :**

1. **From where did this attribute appeared , Its not defined anywhere**   
 *Line no : 22, 23*

```
def run(self):
    self.conn.send('220 Welcome!\r\n')

```
2. **Where is this function / code defined ?**  
 *Line no : 223, 224*  

```
ftp.daemon=True
ftp.start()

```

I know basic **OOP in Python** any **reference material to understand the code and become more power Python programmer will be appreciable** . Thanks!