A TextureSynthesis homework using C and Python