python test for positive integer