Added Python methods and sample