python implementations in progress, php tests