LIBCLOUD-380: Add import_keypair functions and tests

Signed-off-by: Tomaz Muraus <tomaz@apache.org>
Update changes.
Fix Python 2.5 compatibility issue.