There is python module for that :)