made python sub simpler