Modified funcByName to read from stdin instead of accepting arguments. The advantage is that we can use a single connection to perform several lookups.
Changed arg.py to read from stdin.
Changed 'n' to 'i' because it's an index.