add slow peripheral generation, fix python3, and whitespace