Mbed Logo implementation in Python