Adding const-correctness to py read script class.