a.py contains:

```
ip=raw_input()
import b
show()

```

b.py contains:

```
def show:
    global ip
    print ip

```

it's showing an error saying that ip is not defined.
how can i use a variable from the main script inside a module?