test: Make print calls compatible with Python 3

Turn print calls into print() function calls and avoid using comma-separated
arguments, so that they work and look the same with both Python 2 and 3.
test: Make exception catching compatible with Python 3

Use "except Type as var" syntax to work with both Python >= 2.6 and Python 3.
test: Replace obsolete has_key() with "in" to also work with Python 3
test: Move from static gobject bindings to GI

Use GLib gobject-introspection bindings so that we can also use the scripts
with Python 3.
test: Fix inconsistent tab/space usage

This is disallowed in Python 3.
test rilmodem: Ensure property keys is a list

In Python 3 it is an iterator, so always convert it to a list. This change is
compatible with Python 2.
test: Convert to Python 3

Change raw_input() to input() and unicode to str. This is *not* compatible with
Python 2.
test: Switch scripts to run with Python 3

Update the hashbangs.
Merge pull request #56 from martinpitt/master

Port ofono test scripts to Python3