A TextureSynthesis homework using C/Python