Did a couple of problems in Python, Ruby is better IMHO