Automatically determine python and dot paths