Initial python port