fully working python extension