Imported from https://github.com/twairball/pyTracking
