Added support to send integers instead of strings/floats

Added support to send integers instead of strings/floats. This was required for compatibility with statsd servers not accepting floats, such as hekad. I also cleaned up the code a bit to be slightly more PEP8 compliant.