Added Python code for alpha version