Draw spirograph functions with Python