Issue LIBCLOUD-477: Add extra utility function into ec2 driver

Signed-off-by: Tomaz Muraus <tomaz@apache.org>
Update docstring.
cast_func -> transform_func.