Solution for FizzBang problem in python