First time here? Check out the FAQ!
The code above wasn't buiding with Python3. Just in case if this is useful, see the code below with minor corrections.