Having some fun with blocks on python