Python timer modify