Change method name according to upstream.

Upstream has changed method name as follows:
* looped_method -> build_items
* gethostname -> detect_hostname
so, we are following this.

Also, setup.py is now actually working.