Fix 406 on host.get_ports()

Fixes #5

Signed-off-by: Tomoe Sugihara <tomoe@midokura.com>
Merge pull request #6 from midokura/bugs/5

Fix 406 on host.get_ports()