Also add some missing license headers
Keep it as an int in Python, and do all fancy conversions in Node