python prototype

it is very slow ...