Changed python noise function