Python – comparing floats and decimals