add conditinal statements python source file